﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="InternalUserApproval.aspx.cs" Inherits="RBOSS.WebUI.InternalUserApproval" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            width: 479px;
            
        }
        .auto-style2 {
            width: 233px;
      
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table>
        <tr><td class="auto-style2"><a href="InternalUserApproval.aspx">Show All Products</a></td><td class="auto-style1"><a href='InternalUserApproval.aspx?prod=1'>Show Disabled Products</a></td></tr>
        </table>
    <asp:GridView ID="GridView1"  DataKeyNames="ProductId" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" AllowPaging="True" AutoGenerateEditButton="True" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowEditing="GridView1_RowEditing" PageSize="5" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowUpdating="GridView1_RowUpdating" >
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="ProductName" HeaderText="Product Name " ReadOnly="True" />
            <asp:BoundField DataField="FirstName" HeaderText="Vendor Name" ReadOnly="True" />
            <asp:BoundField DataField="UnitPrice" HeaderText="Unit Price "  ReadOnly="True" />
            <asp:BoundField DataField="Quantity" HeaderText="Quantity "  ReadOnly="True" />
            <asp:ImageField DataAlternateTextField="Image" DataImageUrlField="Image" HeaderText="Image"  ReadOnly="True">
                <ControlStyle Height="50px" />
                <ItemStyle Height="30px" />
            </asp:ImageField>
            <asp:CheckBoxField DataField="IsProductEnabled" HeaderText="Enabled " AccessibleHeaderText="Enabled " />
           <asp:TemplateField  >
                <ItemTemplate>
                    <a href='ProductDetailsForm.aspx?id=<%# Eval("ProductId") %>'>View</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle Width="500px" />
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" Width="400px" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
</asp:Content>
